package indi.luckly.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import indi.luckly.entity.PermissionEntity;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository("PermissionMapper")
public interface IPermissionMapper extends BaseMapper<PermissionEntity> {
    /**
     * 根据用角色ID 查询角色权限
     *
     * @param rid 角色ID
     * @return 权限信息
     */
    List<PermissionEntity> findPermissionByRoleId(int rid);
}
